/**
 * Created by Boyz.X on 2015/10/15.
 */
appModule.controller('tabinfoCtrl', function ($scope, $state, CustomersService, $http, $stateParams, $ionicActionSheet) {
  var empid = null;
  CustomersService.getUserInfo(function(empinfo){
    empid = empinfo.userid;
  });

  $http.post(webserver + 'com.chinasie.s2c.users.users.userInfo.biz.ext', {
    empid: empid
  }).success(function (data) {
    $scope.userinfo = data.info[0];
    $scope.userinfo.computer = $scope.userinfo.orgfullname.substr(0,10);
  });
});
